package com.xiaohuang

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.embedded.{ConfigurableEmbeddedServletContainer, EmbeddedServletContainerCustomizer}
import org.springframework.boot.web.servlet.ServletComponentScan
import org.springframework.boot.{CommandLineRunner, SpringApplication}

/**
  * Created by Administrator on 2017/6/15.
  */
object Application extends App {

  SpringApplication.run(classOf[demoApplication], args: _*)

}

@SpringBootApplication
@ServletComponentScan
class demoApplication extends CommandLineRunner with EmbeddedServletContainerCustomizer{
  override def run(strings: String*): Unit = {
    println("springboot -scala 启动");
  }

  override def customize(container: ConfigurableEmbeddedServletContainer): Unit =
  {

  }
}
